<template>
  <div>
    <multi-upload
      :file-list="imgs_url"
      @childUploadSuccess="updateImgsUrl"
      @removeResult="removeImgsUrl"
    />
  </div>
</template>
<script>
import MultiUpload from "../utils/upload";
export default {
  components: {
    MultiUpload
  },
  data() {
    return {
      imgs_url: []
    };
  },
  methods: {
    /** 上传多图 */

    updateImgsUrl(files, url) {
      var that = this;
      setTimeout(() => {
        that.imgs_url.push(url);
        // this.form.imgsUrl = String(this.form.imgs_url)
      }, 3000);
      console.log(that.imgs_url);
    },

    removeImgsUrl(list) {
      this.imgs_url = list;
    }
  }
};
</script>